import { Button } from 'antd'
import { useNavigate } from 'react-router-dom'

function Index() {
  const navigate = useNavigate();
  const returnHome = () => {
    navigate('/');
  };

  return (
    <div>
      <div>
            <Button
        color="primary"
        variant="outlined"
        onClick={returnHome}
        style={{
          marginLeft: '93vw',
          marginTop:'8px ',
          position:'absolute'
        }}
      >
        返回首页
      </Button>
      </div>
  
      3d
    </div>
  )
}

export default Index
